package com.sntk.organauthomanager.infrastructure.db.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @ClassName: UserAffiliateEntity
 * @author: wgchao
 * @createTime: 2020/9/9 9:26 AM
 * @Description: TODO
 */
@Table(name = "sys_organ_user_affiliate_info")
@org.hibernate.annotations.Table(appliesTo = "sys_organ_user_affiliate_info", comment = "用户关联机构")
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserAffiliateEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "uname", length = 20, columnDefinition="varchar(20) COMMENT '账户名'", nullable = false)
    private String uname;

    @Column(name = "institution_number", length = 100, columnDefinition="varchar(100) COMMENT '机构编号'", nullable = false)
    private String institutionNumber;

    @Column(name = "his_user_code", length = 100, columnDefinition="varchar(20) COMMENT 'HIS对用用户编号'")
    private String hisCode;

}
